Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking server user permissions to use sudo #1278

Merged
merged 11 commits into from
Jan 15, 2025

Conversation

lunardunno
Copy link
Collaborator

No description provided.

* checking that the username is root

Changing the mechanism for checking that the username is root

* wheel group check (#1198)

Checking if the user is included in the wheel group

* Checking requirements in script (#1210)

* Checking requirements in script

Checking requirements for sudo users in script

* Adding error handling

Adding error handling in the server controller for:
Sudo package is not pre-installed for sudo users.
Server user or associated group is not listed in the sudoers file.
Server user password required

* adding error codes

* added extended error descriptions

* checking sudo permission for root

Сhecking sudo permission for root.
Сhecking and redefining the system language.

* Username if whoami returns an error

Сommand to use home directory name if whoami returns error or is missing.

* Correcting text error

Correction of the text of the extended description of the package manager error

* Updating translations

* Optimization check_user_in_sudo.sh

* exceptions for missing uname

* output only for groups sudo or wheel
@lunardunno lunardunno changed the title added check for the root user and the wheel group Checking server user permissions to use sudo Dec 1, 2024
Simplifying the script for later adding an exception for root to the server controller
Exception for root if sudo package is not installed
Changed extended description for: not allowed in sudoers.
The sudo command check script is split to check permissions correctly
@lunardunno lunardunno requested a review from Nethius December 9, 2024 05:12
@lunardunno lunardunno changed the base branch from dev to check_sudo_permissions January 15, 2025 21:16
@lunardunno lunardunno marked this pull request as ready for review January 15, 2025 21:22
@lunardunno lunardunno merged commit d5a9d60 into check_sudo_permissions Jan 15, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant